import Http from '../../utils/services';

//获取菜单数据
export function getMenuData(params) {
    return Http.get(`/menu/query?userId=${params}`, params, 'dev');
}

//新增菜单大类
export function addMenuData(params) {
    return Http.post('/menu/add', params, 'dev');
}

//获取用户详情菜单
export function getUserMenuData(params) {
    return Http.get(`/userMenus/query?userId=${params.userId}&menuId=${params.menuId}`, params, 'dev');
}

//新增用户详情菜单
export function addUserMenuData(params) {
    return Http.post('/userMenus/add', params, 'dev');
}